package com.yanmaohu.nikita.data.others;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class ArrayIndexList {

    private int beginIndex;
    private int endIndex;
    private List<ArrayIndex> arrayIndexList;

    public ArrayIndexList(int beginIndex, int endIndex, List<ArrayIndex> arrayIndexList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.arrayIndexList = arrayIndexList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isEmpty() {
        return arrayIndexList.isEmpty();
    }

    public int size() {
        return arrayIndexList.size();
    }

    public ArrayIndex get(int index) {
        return arrayIndexList.get(index);
    }

}
